﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net;
using Microsoft.Practices.Unity;

namespace Metozis.Data.ProductServiceReference
{
    public partial class ProductServiceClient:IProductDb
    {
        public ILog Log { get; set; }

        public IEnumerable<Model.Product> GetAllProducts()
        {
            Log.InfoFormat("Metozis.Data.Db.GetProducts()");

            return GetProducts().Select(item => new Model.Product { Id = item.Id, Name = item.Name });
        }
    }
}
